<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="order by dede58.com"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>笔记库后台-标签管理</title>
    <#include "public/link_css.ftl">
    <#include "public/link_js.ftl">
    <#--    <script>window.location.href='upgrade-browser.html';</script>-->
</head>

<body class="user-select">
<section class="container-fluid">
    <#include "public/header.ftl">
    <div class="row">
        <#include "public/left.ftl">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-lg-10 col-md-offset-2 main" id="main">
            <div class="row">
                <div class="col-md-5">
                    <h1 class="page-header">添加</h1>
                    <form action="/admin/tag/add" method="post" autocomplete="off">
                        <div class="form-group">
                            <label for="category-name">标签名称</label>
                            <input type="text" id="category-name" name="tagName" class="form-control"
                                   placeholder="在此处输入分类名称" required autocomplete="off">
                        </div>
                        <button class="btn btn-primary" type="submit" name="submit">添加新标签</button>
                    </form>
                </div>
                <div class="col-md-7">
                    <h1 class="page-header">管理 <span class="badge">${tagCount}</span></h1>
                    <div class="table-responsive">
                        <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th><span class="glyphicon glyphicon-paperclip"></span> <span
                                            class="visible-lg">ID</span></th>
                                <th><span class="glyphicon glyphicon-file"></span>
                                    <span class="visible-lg">标签名称</span>
                                </th>
                                <th><span class="glyphicon glyphicon-list-alt"></span> <span
                                            class="visible-lg">标签阅读量</span></th>
                                <th><span class="glyphicon glyphicon-pencil"></span>
                                    <span class="visible-lg">操作</span>
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <#if tagManagerList??>
                                <#list tagManagerList as tag>
                                    <tr>
                                        <td>${tag.id}</td>
                                        <td>${tag.tagName}</td>
                                        <#if tag.tagEyes??>
                                            <td>${tag.tagEyes}</td>
                                        <#else>
                                            <td></td>
                                        </#if>
                                        <td><a href="/admin/tag/update?id=${tag.id}">修改</a> <a
                                                    href="/admin/tag/delete?id=${tag.id}">删除</a></td>
                                    </tr>
                                </#list>
                            </#if>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

</body>
</html>
